home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 11687 < prev    next >
Mailbox/MIME Entity  |  1996-08-05  |  1.4 KB

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: Mailbox/MIME Entity (archive/mbox).

ConfidenceProgramDetectionMatch TypeSupport
100% dexvert Newsgroup Content (archive/news) magic Supported
100% dexvert Mailbox/MIME Entity (archive/mbox) magic Supported
100% dexvert Internet Message Format (text/imf) magic Supported
1% dexvert Text File (text/txt) fallback Supported
100% file news, ASCII text default
100% checkBytes Printable ASCII default
100% dexmagic PrintFox/Pagefox WEAK default
100% perlTextCheck Likely Text (Perl) default
100% siegfried fmt/950 MIME Email (1.0) default
100% detectItEasy Format: plain text[LF] default (weak)
100% xdgMime message/news default



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 50 61 74 68 3a 20 72 65 | 64 2e 77 65 65 67 2e 75 |Path: re|d.weeg.u|
|00000010| 69 6f 77 61 2e 65 64 75 | 21 72 6f 62 69 6e 73 6f |iowa.edu|!robinso|
|00000020| 6e 0a 46 72 6f 6d 3a 20 | 54 68 65 20 41 6d 6f 72 |n.From: |The Amor|
|00000030| 70 68 6f 75 73 20 4d 61 | 73 73 20 3c 72 6f 62 69 |phous Ma|ss <robi|
|00000040| 6e 73 6f 6e 40 62 6c 75 | 65 2e 77 65 65 67 2e 75 |nson@blu|e.weeg.u|
|00000050| 69 6f 77 61 2e 65 64 75 | 3e 0a 4e 65 77 73 67 72 |iowa.edu|>.Newsgr|
|00000060| 6f 75 70 73 3a 20 63 6f | 6d 70 2e 6c 61 6e 67 2e |oups: co|mp.lang.|
|00000070| 63 0a 53 75 62 6a 65 63 | 74 3a 20 52 65 3a 20 53 |c.Subjec|t: Re: S|
|00000080| 74 72 69 6e 67 20 50 72 | 6f 62 6c 65 6d 0a 44 61 |tring Pr|oblem.Da|
|00000090| 74 65 3a 20 4d 6f 6e 2c | 20 32 35 20 4d 61 72 20 |te: Mon,| 25 Mar |
|000000a0| 31 39 39 36 20 31 34 3a | 32 31 3a 32 30 20 2d 30 |1996 14:|21:20 -0|
|000000b0| 36 30 30 0a 4f 72 67 61 | 6e 69 7a 61 74 69 6f 6e |600.Orga|nization|
|000000c0| 3a 20 55 6e 69 76 65 72 | 73 69 74 79 20 6f 66 20 |: Univer|sity of |
|000000d0| 49 6f 77 61 2c 20 49 6f | 77 61 20 43 69 74 79 2c |Iowa, Io|wa City,|
|000000e0| 20 49 41 2c 20 55 53 41 | 0a 44 69 73 74 72 69 62 | IA, USA|.Distrib|
|000000f0| 75 74 69 6f 6e 3a 20 77 | 6f 72 6c 64 0a 4d 65 73 |ution: w|orld.Mes|
|00000100| 73 61 67 65 2d 49 44 3a | 20 3c 50 69 6e 65 2e 41 |sage-ID:| <Pine.A|
|00000110| 33 32 2e 33 2e 39 31 2e | 39 36 30 33 32 35 31 34 |32.3.91.|96032514|
|00000120| 31 36 34 36 2e 31 36 30 | 36 36 46 2d 31 30 30 30 |1646.160|66F-1000|
|00000130| 30 30 40 72 65 64 2e 77 | 65 65 67 2e 75 69 6f 77 |00@red.w|eeg.uiow|
|00000140| 61 2e 65 64 75 3e 0a 52 | 65 66 65 72 65 6e 63 65 |a.edu>.R|eference|
|00000150| 73 3a 20 3c 34 6a 36 6c | 36 31 24 34 6e 6f 40 42 |s: <4j6l|61$4no@B|
|00000160| 31 46 46 2e 6d 69 6e 64 | 73 70 72 69 6e 67 2e 63 |1FF.mind|spring.c|
|00000170| 6f 6d 3e 0a 4e 4e 54 50 | 2d 50 6f 73 74 69 6e 67 |om>.NNTP|-Posting|
|00000180| 2d 48 6f 73 74 3a 20 72 | 65 64 2e 77 65 65 67 2e |-Host: r|ed.weeg.|
|00000190| 75 69 6f 77 61 2e 65 64 | 75 0a 4d 69 6d 65 2d 56 |uiowa.ed|u.Mime-V|
|000001a0| 65 72 73 69 6f 6e 3a 20 | 31 2e 30 0a 43 6f 6e 74 |ersion: |1.0.Cont|
|000001b0| 65 6e 74 2d 54 79 70 65 | 3a 20 54 45 58 54 2f 50 |ent-Type|: TEXT/P|
|000001c0| 4c 41 49 4e 3b 20 63 68 | 61 72 73 65 74 3d 55 53 |LAIN; ch|arset=US|
|000001d0| 2d 41 53 43 49 49 0a 58 | 2d 53 65 6e 64 65 72 3a |-ASCII.X|-Sender:|
|000001e0| 20 72 6f 62 69 6e 73 6f | 6e 40 72 65 64 2e 77 65 | robinso|n@red.we|
|000001f0| 65 67 2e 75 69 6f 77 61 | 2e 65 64 75 0a 49 6e 2d |eg.uiowa|.edu.In-|
|00000200| 52 65 70 6c 79 2d 54 6f | 3a 20 3c 34 6a 36 6c 36 |Reply-To|: <4j6l6|
|00000210| 31 24 34 6e 6f 40 42 31 | 46 46 2e 6d 69 6e 64 73 |1$4no@B1|FF.minds|
|00000220| 70 72 69 6e 67 2e 63 6f | 6d 3e 20 0a 0a 4f 6e 20 |pring.co|m> ..On |
|00000230| 4d 6f 6e 2c 20 32 35 20 | 4d 61 72 20 31 39 39 36 |Mon, 25 |Mar 1996|
|00000240| 2c 20 53 68 6f 6e 20 46 | 72 61 7a 69 65 72 20 77 |, Shon F|razier w|
|00000250| 72 6f 74 65 3a 0a 0a 3e | 20 54 68 69 73 20 69 73 |rote:..>| This is|
|00000260| 20 73 75 70 70 6f 73 65 | 64 20 74 6f 20 62 65 20 | suppose|d to be |
|00000270| 61 20 76 61 72 69 61 74 | 69 6f 6e 20 6f 6e 20 73 |a variat|ion on s|
|00000280| 61 6d 70 6c 65 20 63 6f | 64 65 20 66 72 6f 6d 20 |ample co|de from |
|00000290| 61 20 74 65 78 74 62 6f | 6f 6b 2e 0a 3e 20 43 61 |a textbo|ok..> Ca|
|000002a0| 6e 20 61 6e 79 6f 6e 65 | 20 74 65 6c 6c 20 6d 65 |n anyone| tell me|
|000002b0| 20 77 68 79 20 4e 61 6d | 65 43 68 65 63 6b 20 3d | why Nam|eCheck =|
|000002c0| 20 30 20 77 68 65 6e 20 | 49 20 72 75 6e 20 74 68 | 0 when |I run th|
|000002d0| 65 20 70 72 6f 67 72 61 | 6d 3f 0a 0a 20 20 59 6f |e progra|m?.. Yo|
|000002e0| 75 20 63 61 6e 27 74 20 | 63 6f 6d 70 61 72 65 20 |u can't |compare |
|000002f0| 73 74 72 69 6e 67 73 20 | 77 69 74 68 20 3d 3d 20 |strings |with == |
|00000300| 28 74 68 65 20 63 6f 64 | 65 20 77 69 74 68 20 63 |(the cod|e with c|
|00000310| 6f 6d 70 61 72 65 20 74 | 68 65 20 0a 76 61 6c 75 |ompare t|he .valu|
|00000320| 65 73 20 6f 66 20 74 68 | 65 20 70 6f 69 6e 74 65 |es of th|e pointe|
|00000330| 72 73 20 74 6f 20 74 68 | 6f 73 65 20 73 74 72 69 |rs to th|ose stri|
|00000340| 6e 67 73 2c 20 77 68 69 | 63 68 20 69 73 20 61 6e |ngs, whi|ch is an|
|00000350| 20 61 6c 74 6f 67 65 74 | 68 65 72 20 64 69 66 66 | altoget|her diff|
|00000360| 65 72 65 6e 74 20 0a 6d | 61 74 74 65 72 29 2e 20 |erent .m|atter). |
|00000370| 20 59 6f 75 20 6e 65 65 | 64 20 74 6f 20 75 73 65 | You nee|d to use|
|00000380| 20 74 68 65 20 73 74 61 | 6e 64 61 72 64 20 6c 69 | the sta|ndard li|
|00000390| 62 72 61 72 79 20 66 75 | 6e 63 74 69 6f 6e 20 73 |brary fu|nction s|
|000003a0| 74 72 63 6d 70 28 29 20 | 28 69 6e 20 0a 3c 73 74 |trcmp() |(in .<st|
|000003b0| 72 69 6e 67 2e 68 3e 29 | 20 77 68 69 63 68 20 72 |ring.h>)| which r|
|000003c0| 65 74 75 72 6e 73 20 30 | 20 69 66 20 74 68 65 20 |eturns 0| if the |
|000003d0| 73 74 72 69 6e 67 73 20 | 61 72 65 20 65 71 75 61 |strings |are equa|
|000003e0| 6c 2e 0a 0a 20 20 69 6e | 74 20 73 74 72 63 6d 70 |l... in|t strcmp|
|000003f0| 28 63 6f 6e 73 74 20 63 | 68 61 72 20 2a 73 31 2c |(const c|har *s1,|
|00000400| 20 63 6f 6e 73 74 20 63 | 68 61 72 20 2a 73 32 29 | const c|har *s2)|
|00000410| 3b 0a 0a 20 20 53 74 72 | 69 6e 67 73 20 61 72 65 |;.. Str|ings are|
|00000420| 20 6e 6f 74 20 61 20 62 | 61 73 69 63 20 64 61 74 | not a b|asic dat|
|00000430| 61 20 74 79 70 65 20 69 | 6e 20 43 2c 20 73 6f 20 |a type i|n C, so |
|00000440| 69 74 20 69 73 20 67 65 | 6e 65 72 61 6c 6c 79 20 |it is ge|nerally |
|00000450| 74 72 75 65 20 74 68 61 | 74 20 69 66 20 0a 79 6f |true tha|t if .yo|
|00000460| 75 20 6e 65 65 64 20 74 | 6f 20 64 6f 20 73 6f 6d |u need t|o do som|
|00000470| 65 74 68 69 6e 67 20 74 | 6f 20 61 20 73 74 72 69 |ething t|o a stri|
|00000480| 6e 67 2c 20 79 6f 75 20 | 70 61 73 73 20 69 74 20 |ng, you |pass it |
|00000490| 74 6f 20 61 20 66 75 6e | 63 74 69 6f 6e 2e 20 3a |to a fun|ction. :|
|000004a0| 2d 29 0a 0a 2f 2a 2a 4a | 61 6d 65 73 20 52 6f 62 |-)../**J|ames Rob|
|000004b0| 69 6e 73 6f 6e 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |inson***|********|
|000004c0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 20 20 20 20 |********|**** |
|000004d0| 20 20 20 20 20 20 20 20 | 0a 20 20 22 49 66 20 61 | |. "If a|
|000004e0| 20 66 61 74 61 6c 20 65 | 72 72 6f 72 20 6f 63 63 | fatal e|rror occ|
|000004f0| 75 72 73 2c 20 74 68 65 | 20 70 72 6f 67 72 61 6d |urs, the| program|
|00000500| 20 73 68 6f 75 6c 64 20 | 6e 6f 74 20 62 65 20 61 | should |not be a|
|00000510| 6c 6c 6f 77 65 64 20 74 | 6f 20 63 6f 6e 74 69 6e |llowed t|o contin|
|00000520| 75 65 2e 22 0a 20 2d 2d | 20 4f 72 61 63 6c 65 20 |ue.". --| Oracle |
|00000530| 50 72 6f 2a 43 20 55 73 | 65 72 27 73 20 47 75 69 |Pro*C Us|er's Gui|
|00000540| 64 65 20 20 20 20 20 20 | 20 20 20 2a 2a 2a 2a 2a |de | *****|
|00000550| 2a 2a 2a 2a 2a 2a 2a 2a | 6a 61 6d 65 73 2d 72 6f |********|james-ro|
|00000560| 62 69 6e 73 6f 6e 40 75 | 69 6f 77 61 2e 65 64 75 |binson@u|iowa.edu|
|00000570| 2a 2a 2f 0a 0a 0a 0a | |**/.... | |
+--------+-------------------------+-------------------------+--------+--------+